/** 
 * Project Name:tinysql 
 * File Name:SqlScript.java 
 * Package Name:com.wdy.golden.tinysql.mapping 
 * Date:2021年4月1日下午5:07:59 
 * 
*/  
package com.wdy.golden.tinysql.mapping;

import java.util.List;

import org.springframework.jdbc.core.namedparam.SqlParameterSource;

import com.wdy.golden.tinysql.util.BaseSerializable;
import com.wdy.golden.tinysql.util.StringUtil;

/** 
 * ClassName: SqlScript <br/> 
 * Function: TODO ADD FUNCTION. <br/> 
 * Reason:   TODO ADD REASON. <br/> 
 * Date:     2021年4月1日 下午5:07:59 <br/> 
 * @author   DongYe_Wu 
 * @version
 * @see       
 */
public class SqlScript extends BaseSerializable {
	private static final long serialVersionUID = 1L;
	
	private String originSql;
	private String paginationSql;
	private String countSql;
	private boolean superPagination;
	private SqlParameterSource sqlParamSource;
	private List<String> batchParams;
	private boolean secondCache;
	private int cacheSeconds;
	
	public String getOriginSql() {
		return StringUtil.trim(originSql);
	}
	public void setOriginSql(String originSql) {
		this.originSql = originSql;
	}
	public String getPaginationSql() {
		return StringUtil.trim(paginationSql);
	}
	public void setPaginationSql(String paginationSql) {
		this.paginationSql = paginationSql;
	}
	public String getCountSql() {
		return StringUtil.trim(countSql);
	}
	public void setCountSql(String countSql) {
		this.countSql = countSql;
	}
	public boolean isSuperPagination() {
		return superPagination;
	}
	public void setSuperPagination(boolean superPagination) {
		this.superPagination = superPagination;
	}
	public SqlParameterSource getSqlParamSource() {
		return sqlParamSource;
	}
	public void setSqlParamSource(SqlParameterSource sqlParamSource) {
		this.sqlParamSource = sqlParamSource;
	}
	public List<String> getBatchParams() {
		return batchParams;
	}
	public void setBatchParams(List<String> batchParams) {
		this.batchParams = batchParams;
	}
	public boolean isSecondCache() {
		return secondCache;
	}
	public void setSecondCache(boolean secondCache) {
		this.secondCache = secondCache;
	}
	public int getCacheSeconds() {
		return cacheSeconds;
	}
	public void setCacheSeconds(int cacheSeconds) {
		this.cacheSeconds = cacheSeconds;
	}

}
